package com.medical.manage.es;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

@Data
@IndexName("search111")
public class SearchEs {
    /**
     * 搜索id
     */
    @IndexId(type = IdType.CUSTOMIZE)
    private Integer id;
    /**
     * 搜索名称
     */
    @IndexField(fieldType = FieldType.TEXT)
    private String searchName;
    /**
     * 搜索类型
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer searchType;
    /**
     * 搜索次数
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer searchNum;
}
